﻿using UnityEngine;

namespace Pumpkin.FrameBase
{
    public interface IResLoader
    {
        void Init();

        T LoadAsset<T>(string path, bool autoUnload = false) where T : UnityEngine.Object;

        UnityEngine.Object LoadAsset(string path, bool autoUnload = false);

        TextAsset LoadText(string path, bool autoUnload = false);

        GameObject LoadPrefab(string path, bool autoUnload = false);

        Texture LoadTexture(string path, bool autoUnload = false);

        void PreLoadCommonRes();

        void PreLoadSceneRes(string sceneName);

        void UnLoadBundle(string bundleName);
    }
}
